package qiti;

public class demo4 {

    double r;

    public void area(){
        double pai = 3.14;
        double s = pai * r * r;
        System.out.println("面积为" + s);
    }

    public double area2(double pai){
        double s = pai * r * r;
        return s;
    }



}
